class CmdUse {
  
  static IcoControl(flag) {
    ; 显隐桌面图标
    ; 获取FolderView的id
    HWorkerW := WinGetID("ahk_class WorkerW")
    HDefView := DllCall("FindWindowEx", "UInt", HWorkerW, "UInt", 0, "Str", "SHELLDLL_DefView", "UInt", 0)
    HListView := DllCall("FindWindowEx", "UInt", HDefView, "UInt", 0, "Str", "SysListView32", "UInt", 0)
    if flag {
      DllCall("ShowWindow", "UInt", HListView, "UInt", 5)
    }
    else {
      DllCall("ShowWindow", "UInt", HListView, "UInt", 0)
    }
  }

  static LightnessControl(lightness){
    Run(A_ComSpec ' /c "WMIC /NAMESPACE:\\root\wmi PATH WmiMonitorBrightnessMethods WHERE "Active=TRUE" CALL WmiSetBrightness Brightness=' lightness ' Timeout=0"', , 'Hide')
  }


}